﻿using AutoMapper;
using SmartCity.BasicData.Api.Write.Application.Command.Account;
using SmartCity.BasicData.Api.Write.Application.Command.GridType;
using SmartCity.BasicData.Domain;

namespace SmartCity.BasicData.Api.Write
{
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<CreateAccountCommand,AccountModel>().ReverseMap();
            CreateMap<DelAccountCommand,AccountModel>().ReverseMap();
            CreateMap<CreateAccountCommand, AccountModel>().ReverseMap();
            CreateMap<UpdateAccountCommand, AccountModel>().ReverseMap();
            CreateMap<CreateGridTypeCommand, GridTypeModel>().ReverseMap();
           // CreateGridTypeCommand->GridTypeModel
            //CreateMap<CreateGridTypeCommand, GridTypeModel>().ReverseMap();
        }
    }
}
